import request from "@/utils/request";

export default {

  //查询医院列表信息
  getPageList(page,limit,hospitalQueryVo){
    return request({
      url: `/admin/hosp/hospital/findHospList/${page}/${limit}`,
      method:'GET',
      params:hospitalQueryVo
    })
  },
  //根据医院名称模糊查询
  getByHospName(hosname){
    return request({
      url: `/admin/hosp/hospital/findHospByHosName/${hosname}`,
      method:'GET'

    })
  },

  //根据医院编号查询医院的详情信息
  findHospDetail(hoscode){
    return request({
      url : `/admin/hosp/hospital/findHospDetail/${hoscode}`,
      method:'GET'
    })
  },

  //根据医院编号查询医院科室信息
  getDepartmentByHoscode(hoscode){
    return request({
      url : `/admin/hosp/hospital/department/${hoscode}`,
      method :'GET'
    })
  },

  //获取可以预约的排班信息
  getBookingScheduleRule(page,limit,hoscode,depcode){
    return request({
      url : `/admin/hosp/hospital/auth/getBookingScheduleRule/${page}/${limit}/${hoscode}/${depcode}`,
      method :'GET'
    })
  },

  //获取排班数据
  findScheduleList(hoscode,depcode,workDate){
    return request({
      url : `/admin/hosp/hospital/auth/findScheduleList/${hoscode}/${depcode}/${workDate}`,
      method :'GET'
    })
  },

  //根据排班id获取排班数据
  getSchedule(scheduleId){
    return request({
      url : `/admin/hosp/hospital/getSchedule/${scheduleId}`,
      method :'GET'
    })
  }
}
